/**
 *
 */
package com.naiterui.ehp.bs.doctor.dao.impl;

import com.naiterui.ehp.bs.doctor.dao.IDrConsultCommentDao;
import com.naiterui.ehp.bs.doctor.repository.IDrConsultCommentRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 医生星级评价持久层
 * @author guoyongxiang
 * @since 2.3.0
 */
@Component
public class AdDrConsultCommentDaoImpl implements IDrConsultCommentDao {

    @Autowired
    private IDrConsultCommentRepository drConsultCommentRepository;
    /**
     * @Author guoyongxiang
     * @Date 2016年4月25日
     * @since 1.0.0
     * @param doctorId
     * @return
     * @see IDrConsultCommentDao#getCommentCount(java.lang.Long)
     */
    @Override
    public long getCommentCount(Long doctorId) {
        return drConsultCommentRepository.countByDoctorId(doctorId);
    }

}
